package cn.java.caixiaoqing.service.impl;

import cn.java.caixiaoqing.dao.StudentDao;
import cn.java.caixiaoqing.domain.Student;
import cn.java.caixiaoqing.service.StudentService;
import cn.java.caixiaoqing.utils.MybatisUtils;

import java.util.List;

public class StudentServiceImpl implements StudentService {

    private StudentDao studentDao = MybatisUtils.getSqlSession().getMapper(StudentDao.class);

    @Override
    public List<Student> finAllStudents() {
        return studentDao.findAll();
    }
}
